package FlexTrade;


import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.LinkedList;
import net.jini.core.event.RemoteEventListener;

public interface IMarketService extends Remote {
	//the time that object is still alive after auction finishes
	static long TIME_DELAY_AFTER_AUCTION_FINISH = 180000L; // 3 mins
	public void receiveNewAuctionRequestFromProvider(AuctionPrimitiveData  auctionPrimitiveData, 
						RemoteEventListener remoteEventListener) throws RemoteException;
	
	public LinkedList<AuctionPrimitiveData> getCurrentActiveAuctions() throws RemoteException;
}
